import logging


f =  open('log','a',encoding='utf-8')
logging.basicConfig(level=logging.ERROR,format="%(asctime)s [%(levelname)s] %(filename)s %(message)s",stream=f)
logging.debug('debug级别')
logging.info('info信息')
logging.error('是error')
logging.warning('这个是warning')
logging.critical('xxx')


'''

{
company:[{id:1,name:company1,print:200w},{id:2}]
}


{
languages:[ruby,perl,pyhon],
websites:{yaml:yaml.org,ruby:ruby-lang.org}


}

'''